package com.dmzc.stage2.chapter28;

import java.lang.reflect.Method;

public class Subscriber {
    private final Object subscribeObject;
    private final Method suscribeMethod;
    private boolean disable = false;

    public Subscriber(Object subscribeObject, Method suscribeMethod) {
        this.subscribeObject = subscribeObject;
        this.suscribeMethod = suscribeMethod;
    }

    public Object getSubscribeObject() {
        return subscribeObject;
    }

    public Method getSuscribeMethod() {
        return suscribeMethod;
    }

    public void setDisable(boolean disable) {
        this.disable = disable;
    }
    public boolean isDisable(){
        return disable;
    }
}
